<?php
/**
 * @version		$Id: default.php 21322 2011-05-11 01:10:29Z dextercowley $
 * @package		Joomla.Site
 * @subpackage	mod_login
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
$user =  &JFactory::getUser();
if($user->id == 0):
?>

<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<form id="loginfrm" role="form" autocomplete="off" >
			<div class="modal-content">
				<div class="modal-body">
						<div class="form-group">
							<p class="help-block"><?php echo JText::_('WRD_TOP_MENU_LOGIN_TO_ENJOY_GREAT')?></p>
						</div>
						
						<div class="form-group">
					    	<label><?php echo JText::_('WRD_TOP_MENU_LOGIN_EMAIL')?></label>
					      	<input required type="text" autocomplete="off" class="form-control" placeholder="<?php echo JText::_('WRD_TOP_MENU_LOGIN_EMAIL')?>" id="username" name="username" />
					    </div>
					    
					    <div class="form-group">
					    	<label><?php echo JText::_('WRD_TOP_MENU_LOGIN_PASSWORD')?></label>
					      	<input required type="password" autocomplete="off" class="form-control" placeholder="<?php echo JText::_('WRD_TOP_MENU_LOGIN_PASSWORD')?>" id="password_login" name="password_login" />
					  	</div>
					  	
					  	<div class="form-group">
					      	<p class="help-block"><a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
					      		<?php echo JText::_('WRD_TOP_MENU_LOGIN_FORGOT_PASSWORD')?></a></p><br>
							<p class="help-block"><?php echo JText::_('WRD_TOP_MENU_LOGIN_DONT_HAVE_AN_ACCOUNT')?>
								<a href="javascript:void(null);" id="signUp_alt" data-toggle="modal" data-target="#signupModal">
									<?php echo JText::_('WRD_TOP_MENU_LOGIN_CLICK_HERE')?></a> 
									
								<?php echo JText::_('WRD_TOP_MENU_LOGIN_TO_REGISTER')?></p>
						</div>
					
				</div>
				<div class="modal-footer">
			        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
			        <input type="submit" class="btn btn-wmc" name="login" id="btn_login" value="<?php echo JText::_('WRD_TOP_MENU_LOGIN_TO_WMC_VIPCARD')?>" />
			    </div>
			</div>
		</form>
	</div>
</div>

<div class="modal fade" id="signupModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">		
		<form autocomplete="off" role="form" id="regfrm" method="post" action="<?php echo JRoute::_('index.php?option=com_wrd&task=profile.save'); ?>">
			<div class="modal-content">
				<div class="modal-body">
					
						<div class="form-group">
							<p class="help-block"><?php echo JText::_('WRD_TOP_MENU_REGISTER_DONT_HAVE_ACCOUNT_YET')?></p>
							<p class="help-block"><?php echo JText::_('WRD_TOP_MENU_REGISTER_CREATE_YOUR_OWN_VIPCARD')?></p>
							<p class="help-block"><?php echo JText::_('WRD_TOP_MENU_REGISTER_YOUR_BENEFITS_INCLUDE')?></p>
							<p class="help-block">
								<?php echo JText::_('WRD_TOP_MENU_REGISTER_AGE_LIMIT')?>
							</p>
							<br>
						</div>
						
							
						<div class="form-group">
				    		<label><?php echo JText::_('WRD_TOP_MENU_REGISTER_EMAIL')?></label>
				      		<input required autocomplete="off" type="email" class="form-control" placeholder="<?php echo JText::_('WRD_TOP_MENU_REGISTER_EMAIL')?>" name="email1" id="email1"/>
				    	</div>
			    	
			    	
				    	<div class="form-group">
				    		<label><?php echo JText::_('WRD_TOP_MENU_REGISTER_ENTER_PASSWORD')?></label>
				      		<input required autocomplete="off" type="password" class="form-control" id="password" name="password" placeholder="<?php echo JText::_('WRD_TOP_MENU_REGISTER_ENTER_PASSWORD')?>" />
				    	</div>
			    	
			    	
				    	<div class="form-group">
				    		<label><?php echo JText::_('WRD_TOP_MENU_REGISTER_RE_ENTER_PASSWORD')?></label>
				      		<input required autocomplete="off" type="password" class="form-control" id="password1" name="password1" placeholder="<?php echo JText::_('WRD_TOP_MENU_REGISTER_RE_ENTER_PASSWORD')?>" />
				    	</div>
			    	
					
				    	<div class="checkbox">
				    		<label>
				    			<input autocomplete="off" id="term" type="checkbox" name="term" value="term"><?php echo JText::_('WRD_TOP_MENU_REGISTER_AGREE_TERM_CONDITION')?><br>
				    		</label>	
				    	</div>
			
					
					<input type="hidden" name="profile" value="">	
					<input type="hidden" name="option" value="com_wrd">	
					<input type="hidden" name="task" value="profile.save">	
					<?php echo JHtml::_('form.token');?>
				</div>
				<div class="modal-footer">
			        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
			        <input type="submit" class="btn btn-wmc" name="signup" id="signup" value="<?php echo JText::_('WRD_TOP_MENU_REGISTER_SIGN_UP')?>" />
			    </div>
			</div>
		</form>
	</div>
</div>
<?php endif;?>